package leaf.cloud.common.massage.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @ClassName SendMsgTextCard
 * @Description
 * @Author YeZiHao
 * @Date 2023/3/8 14:10
 **/
@Getter
@Setter
public class TextCardMsg extends MassageMain {
    @JSONField(name = "msgtype")
    private String msgType = "textcard";
    @JSONField(name = "textcard")
    public TextCard textcard;

    @Data
    public static class TextCard {
        private String title;
        private String description;
        private String url;
        private String btntxt = "详细";

        public TextCard(String title, String description, String toUrl) {
            this.title = title;
            this.description = description;
            this.url = toUrl;
        }
    }
}
